package org.sxm.cloud.service;

import org.sxm.cloud.dto.order.OrderDTO;
import org.sxm.cloud.entity.order.OrderEntity;

public interface IOrderService {

    /**
     * 查询订单详情
     * @param id
     * @return
     */
    OrderEntity getByOrderId(Integer id);

    /**
     * 下订单
     * @param order
     * @return
     */
    int addOrder(OrderDTO order);

    /**
     * 取消订单
     * @param orderId
     * @return
     */
    int cancelOrder(Integer orderId);

    /**
     * 更新订单状态
     * @param orderId
     * @return
     */
    int updateOrderPayStatus(Integer orderId);
}
